import request from "../api";

//下发策略
export function createDestFile(param) {
	return request({
		url: "/biz/ControlManageDetail/createDestFile",
		method: "post",
	});
}
// 查询储能单元(不分页)
export function bmsUnitList(param) {
	return request({
		url: "/biz/ctrlGroup/queryList",
		method: "get",
		params: param,
	});
}
// 查询复制的储能单元-季节列表
export function copyBmsUnitList() {
	return request({
		url: "/biz/ControlManageIndex/queryList",
		method: "get",
	});
}
// 季节管理列表
export function seasonList(param) {
	return request({
		url: "/biz/ControlManageIndex/list",
		method: "get",
		params: param,
	});
}
// 新增季节管理
export function addSeason(data) {
	return request({
		url: "/biz/ControlManageIndex/insert",
		method: "post",
		data: data,
	});
}
// 修改季节管理
export function editSeason(data) {
	return request({
		url: "/biz/ControlManageIndex/updateById",
		method: "post",
		data: data,
	});
}
// 删除季节管理
export function deleteSeason(id) {
	return request({
		url: "/biz/ControlManageIndex/deleteById/",
		method: "delete",
		params: { id: id },
	});
}
// 查询储能单元-季节
export function bmsSeasonList(param) {
	return request({
		url: "/biz/ControlManageIndex/queryList",
		method: "get",
		params: param,
	});
}
// 策略控制列表
export function tacticList(param) {
	return request({
		url: "/biz/ControlManageDetail/list",
		method: "get",
		params: param,
	});
}
// 新增策略控制
export function addTactic(data) {
	return request({
		url: "/biz/ControlManageDetail/insert",
		method: "post",
		data: data,
	});
}
// 修改策略控制
export function editTactic(data) {
	return request({
		url: "/biz/ControlManageDetail/updateById",
		method: "post",
		data: data,
	});
}
// 删除策略管理
export function deleteTactic(data) {
	return request({
		url: "/biz/ControlManageDetail/deleteById",
		method: "delete",
		params: data,
	});
}
